package com.mspbots.core.account.model;


import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mspbots.core.BaseEntity;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@TableName(value = "tenant_role", autoResultMap = true)
@JsonFormat(pattern = "YYYY-MM-dd HH:mm:ss")
public class TenantRole extends BaseEntity {

    private String roleName;

    private String roleCode;

    private String roleDesc;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    private Long delFlag;


    @Builder
    public TenantRole(String roleName, String roleCode, String roleDesc, LocalDateTime createTime, LocalDateTime updateTime, Long delFlag) {
        this.roleName = roleName;
        this.roleCode = roleCode;
        this.roleDesc = roleDesc;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.delFlag = delFlag;
    }
}
